﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Provausio.DependencyFinder.App.Wpf.Object.Domain
{
    public class Project
    {
        public string ProjectPath { get; private set; }

        public string ProjectName
        {
            get
            {
                return Path.GetFileNameWithoutExtension(ProjectPath);
            }
        }

        public string ProjectAssemblyName
        {
            get
            {
                return string.Format("{0}.dll", Path.GetFileNameWithoutExtension(ProjectPath));
            }
        }

        public Project(string path)
        {
            ProjectPath = path;
        }

        public override string ToString()
        {
            return ProjectName;
        }
    }
}
